#
# Be sure to run `pod lib lint SEGPlatform.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'SEGPlatform'
  s.version          = '0.1.0'
  s.summary          = 'A short description of SEGPlatform.'
  s.description      = '<<-DESC
  TODO: Add long description of the pod here.
                         DESC'
  s.homepage         = 'http://192.168.1.6:9200/ios/SEGPlatform'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'jingjie' => 'jingjie@segimail.com' }
  s.source           = { :git => 'http://gitlab.uhomecp.com:9200/ios/SEGPlatform.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '8.0'
  s.requires_arc = true
  s.resource_bundles = {
    'SEGPlatform' => ['SEGPlatform/Resources/*.*']
  }
  # s.source_files = 'SEGPlatform/Class/**/*.{h,m}'
  # s.resource_bundles = {
  #   'SEGPlatform' => ['SEGPlatform/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'


   # header
  s.subspec 'SEGPlatformHeader' do|header|
    header.source_files  = "SEGPlatform/Class/SEGPlatformHeader/**/*"
    header.public_header_files = "SEGPlatform/Class/SEGPlatformHeader/**/*.h"
    header.dependency 'SEGPlatform/SEGPlatform'
    header.dependency 'SEGPlatform/SEGBussinessConst'
    header.dependency 'SEGPlatform/SEGInterfaceManager'
    # header.dependency 'SEGPlatform/SEGConfig'
    header.dependency 'SEGPlatform/SEGNavi'
    header.dependency 'SEGPlatform/CommonViews'
    header.dependency 'SEGPlatform/SEGUserImageView'
    header.dependency 'SEGPlatform/SEGNoDataConfig'
    header.dependency 'SEGPlatform/SEGMenuRequestManager'
  end 
  

  # 平台组件
  s.subspec 'SEGPlatform' do|platform|
    platform.source_files  = "SEGPlatform/Class/SEGPlatform/**/*"
    platform.public_header_files = "SEGPlatform/Class/SEGPlatform/**/*.h"
  end 

  # const
  s.subspec 'SEGBussinessConst' do |cc|
    cc.source_files  = "SEGPlatform/Class/SEGBussinessConst/**/*"
    cc.public_header_files = "SEGPlatform/Class/SEGBussinessConst/**/*.h"
    cc.dependency "SEGPlatform/SEGPlatform"
    cc.dependency "Commom/SEGColor"
    cc.dependency "Commom/SEGTools/YYBase"
  end 

   # 接口请求&模型组件
  s.subspec 'SEGInterfaceManager' do|interface|
    interface.source_files  = "SEGPlatform/Class/SEGInterfaceManager/**/*.{h,m}"
    interface.public_header_files  = "SEGPlatform/Class/SEGInterfaceManager/**/*.h"
    interface.dependency "SEGPlatform/SEGPlatform"
    interface.dependency "SEGPlatform/SEGBussinessConst"
    interface.dependency "Commom"
  end


  #Config
  # s.subspec 'SEGConfig' do |config|
  #   config.source_files = "SEGPlatform/Class/SEGConfig/*" , "SEGPlatform/Class/SEGConfig/**/*"
  #   config.public_header_files = "SEGPlatform/Class/SEGConfig/*.h", "SEGPlatform/Class/SEGConfig/**/*.h"
  # end
  
  # navi
  s.subspec 'SEGNavi' do|anv|
    anv.source_files  = "SEGPlatform/Class/SEGNavi/**/*"
    anv.public_header_files = "SEGPlatform/Class/SEGNavi/**/*.h"
    anv.dependency "Commom/SEGTools/YYBase"
    anv.dependency "CommonMediator" # 外部依赖
    anv.dependency "Commom/SEGColor"
    # anv.dependency "SEGPlatform/SEGConfig"
  end  


  # 公共视图
  s.subspec 'CommonViews' do|cv|
    cv.source_files  = "SEGPlatform/Class/CommonViews/**/*"
    cv.public_header_files = "SEGPlatform/Class/CommonViews/**/*.h"
    cv.prefix_header_file = "SEGPlatform/Class/CommonViews/CommonViewPrefixHeader.pch"
    cv.dependency "Commom/SEGTools/YYBase"
    cv.dependency "Commom/SEGColor"
    cv.dependency "Commom/SEGLayoutMacro"
    cv.dependency "Commom/SEGAlertView"
    cv.dependency "Commom/SEGServerManager"
    cv.dependency "Commom/ThirdNibs/SEGText"
    cv.dependency "Commom/ThirdNibs/SEGonry"
    cv.dependency "Commom/ThirdNibs/SDWebImage"
    cv.dependency "SEGPlatform/SEGNavi"
    cv.dependency "SEGPlatform/SEGInterfaceManager"
    cv.dependency "SEGPlatform/SEGBussinessConst"
    cv.dependency 'GDTMobSDK'
  end  


  # 用户头像圆角组件
  s.subspec 'SEGUserImageView' do|roundness|
    roundness.source_files  = "SEGPlatform/Class/SEGUserImageView/**/*"
    roundness.public_header_files = "SEGPlatform/Class/SEGUserImageView/**/*.h"
    roundness.dependency "SEGPlatform/SEGPlatform"
  end
  
  # 默认文案图片
  s.subspec 'SEGNoDataConfig' do|nodata|
    nodata.source_files  = "SEGPlatform/Class/SEGNoDataConfig/**/*"
    nodata.public_header_files = "SEGPlatform/Class/SEGNoDataConfig/**/*.h"
    nodata.dependency "SEGPlatform/SEGPlatform"
    nodata.dependency "Commom/ThirdNibs/SEGonry"
    nodata.dependency "Commom/SEGColor"
  end
  
  # 默认文案图片
  s.subspec 'SEGThirdConfig' do|thirdconfig|
    thirdconfig.source_files  = "SEGPlatform/Class/SEGThirdConfig/**/*"
    thirdconfig.public_header_files = "SEGPlatform/Class/SEGThirdConfig/**/*.h"
    thirdconfig.dependency "SEGPlatform/SEGPlatform"
    thirdconfig.dependency "commonThirds"
    thirdconfig.dependency "WechatOpenSDK"
    thirdconfig.dependency "SVProgressHUD"
    thirdconfig.dependency "AlipaySDK-iOS"
  end
  
  # 菜单管理
  s.subspec 'SEGMenuRequestManager' do |menu|
    menu.source_files  = "SEGPlatform/Class/SEGMenuRequestManager/**/*"
    menu.public_header_files = "SEGPlatform/Class/SEGMenuRequestManager/**/*.h"
  end
  
end
